package com.ios.dto;

import com.ios.enums.CallLogEnum;

/**
*@Author:WenTao
*@Description:紧急呼叫中间状态类
*@Date:9:00 2018/7/21
*/
public class CallLogExecution {
    /*结果状态*/
    private int state;
    /*状态标识*/
    private String stateInfo;
    /*紧急呼叫号码*/
    private String phone;

    /*操作失败时的构造器*/
    public CallLogExecution(CallLogEnum stateEnum){
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
    }

    /*操作成功时的构造器*/
    public CallLogExecution(CallLogEnum stateEnum,String phone){
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
        this.phone = phone;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getStateInfo() {
        return stateInfo;
    }

    public void setStateInfo(String stateInfo) {
        this.stateInfo = stateInfo;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
}
